package org.ponly.cta4j.drawing.color;

import java.awt.Color;

/**
 * 固定颜色的颜色生成器.
 *
 * @author vacoor
 * @since 1.0
 */
public class SingleColorGenerator implements ColorGenerator {
    private Color color;

    /**
     * 创建给定颜色的颜色生成器.
     *
     * @param color 颜色
     */
    public SingleColorGenerator(final Color color) {
        this.color = color;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Color getColor() {
        return color;
    }
}
